package com.tianya.common.search;

import java.util.ArrayList;
import java.util.List;

public class GotoPage {

	private int name;
	private int to;
	public int getName() {
	 return name;
	}
	public void setName(int name) {
	 this.name = name;
	}
	public int getTo() {
	 return to;
	}
	public void setTo(int to) {
	 this.to = to;
	}
	public static List<GotoPage> getGoto(int i)
	{
	 List<GotoPage> temp = new ArrayList<GotoPage>();
	 if(i>0)
	 {
	  for(int j =0;j<i;j++)
	  {
	   GotoPage gt = new GotoPage();
	   gt.setName(j+1);
	   gt.setTo(j+1);
	   temp.add(gt);
	  }
	 }
	 return temp;
	 
	}

}
